let base = '';

axios.defaults.withCredentials=true;

const getRequest = (url,params) => {
    return axios({
        method : 'get',
        params : params,
        url : `${base}${url}`
    })
}

const postRequest = (url,params) => {
    return axios({
        method : 'post',
        params : params,
        url : `${base}${url}`
    })
}